package org.qy;

import org.qy.star_server.core.BrokerServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.servlet.http.Cookie;
import java.util.HashMap;

@SpringBootApplication
@Configuration
public class StarServiceApplication {
    public static ConfigurableApplicationContext context;
    public static BrokerServer brokerServer;
    public static void main(String[] args) {
        context = SpringApplication.run(StarServiceApplication.class, args);
        brokerServer = BrokerServer.brokerServerFactory(7993);
        brokerServer.start();
    }
}